package org.example.design.bridge.channel;

import org.example.design.bridge.mode.IPayMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;

/**
 * @Classname Pay
 * @Description 支付方式抽象类
 * @Date 2020/11/3 2:58 下午
 * @Created by xiangjd
 */
public abstract class Pay {

    protected Logger logger = LoggerFactory.getLogger(Pay.class);

    protected IPayMode iPayMode;

    public Pay(IPayMode iPayMode) {
        this.iPayMode = iPayMode;
    }

    public abstract String transfer(String uid, String tradeId, BigDecimal acmount);
}
